﻿#include <string>
#include <iostream>
#include<sstream>

using namespace std;

int main()
{
	string imnput;
	cin >> input;
	if (input == 'zero')
	{
		cout << "0" << endl;
	}
	if (input == 'one')
	{
		cout << "1" << endl;
	}
	if (input == 'two')
	{
		cout << "2" << endl;
	}
	if (input == 'three')
	{
		cout << "3" << endl;
	}
	if (input == 'four')
	{
		cout << "4" << endl;
	}
	if (input == 'five')
	{
		cout << "5" << endl;
	}if (input == 'six')
	{
		cout << "6" << endl;
	}
	if (input == 'seven')
	{
		cout << "7" << endl;
	}
	if (input == 'eight')
	{
		cout << "8" << endl;
	}
	if (input == 'nine')
	{
		cout << "9" << endl;
	}
	
	int main() {
		string input;
		getline(cin, input);
		if (count(input.begin(), int.end())
		{
			cout << "Wrong input" << endl;
			return 0; 
		}
	}
}
